#define _CRT_SECURE_NO_WARNINGS 1
#include<stdlib.h>
#include<stdio.h>
typedef struct contact
{
    char name[50];
    char phone[15];
    int age;
}cont;
int main()
{
    cont* p = NULL;
    cont* tmp = (cont*)realloc(p, 10000);
    p = tmp;
    scanf_s("%s", p[0].name,sizeof(p[0].name));
    scanf_s("%s", p[0].phone,sizeof(p[0].phone));
    scanf_s("%d", &p[0].age, sizeof(&p[0].age));
    scanf_s("%s", p[1].name, sizeof(p[1].name));
    scanf_s("%s", p[1].phone, sizeof(p[1].phone));
    scanf_s("%d", &p[1].age, sizeof(&p[1].age));
    p[1] = p[0];
    printf("%s %s %d", p[1].name, p[1].phone, p[1].age);

}